﻿using System;
using System.Collections.Generic;
using VisionCloud.Domain.Common;
using VisionCloud.Domain.ModelAttribute;

namespace VisionCloud.Domain.DtoModel.Sys
{
    /// <summary>
    /// 用户与项目关系
    /// </summary>
    public class SysUserProjectDto : SysBaseDto
    {
        public Guid UserId { get; set; }
        public Guid ProjectId { get; set; }
        public DateTime CreatedDate { get; set; }
        public DateTime LastUpdatedDate { get; set; }

        public string UserCode { get; set; }
        public string UserName { get; set; }

        public string ProjectName { get; set; }
        public Guid UserProjectId { get; set; }

        public string Details { get; set; }
    }

    /// <summary>
    /// 查询条件对象
    /// </summary>
    public class SysUserProjectCondition : PageBase
    {
        public string UserCode { get; set; }

        public string UserName { get; set; }

        public string ProjectName { get; set; }

        public Guid UserId { get; set; }
        public Guid ProjectId { get; set; }

        public bool? IsDeleted { get; set; }
    }

    public class UserProjectDto
    {
        public Guid UserId { get; set; }

        public Guid ProjectId { get; set; }
    }

    public class UserProjectViewModel
    {
        [GuidRequiredAttribute]
        public Guid ProjectId { get; set; }

        public List<Guid> UserIdList { get; set; }

        public string IP { get; set; }
    }
}